﻿#region Copyright 
/*-------------------------------------------------------------------------
* 命名空间名称/文件名:    SSPivot.Admin.Core.Service.communal.Captcha.Dto/EmailSendCodeEventDto 
* CLR版本:     4.0.30319.42000
* 机器名称:    DESKTOP-NHMLO8A
* 功 能：       N/A
* 类 名：       EmailSendCodeEventDto
* 创建时间：  2025/6/4 11:16:41
* 版本号：      v1.0
* 创建人:        xulong
*-------------------------------------------------------------------------*/
#endregion
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SSPivot.Admin.Core.Service.communal.Captcha.Dto
{
    /// <summary>
    /// 邮箱验证码
    /// </summary>
    public class EmailSendCodeEventDto
    {
        public static class Models
        {
            /// <summary>
            /// 邮箱
            /// </summary>
            public class EmailModel
            {
                /// <summary>
                /// 名称
                /// </summary>
                public string? Name { get; set; }

                /// <summary>
                /// 地址
                /// </summary>
                public string? Address { get; set; }
            }
        }

        /// <summary>
        /// 收件人
        /// </summary>
        [Required(ErrorMessage = "请输入收件人")]
        public Models.EmailModel? ToEmail { get; set; }

        /// <summary>
        /// 验证码
        /// </summary>
        public string? Code { get; set; }
    }

}
